package com.atguigu.gulimall.product.exception.enums;

public enum ExceptionErrorCodeEnum {


    BAD_REQUEST("PR0400", "badRequest.message"),
    INTERNAL_ERROR("PR0500", "服务异常"),
    PARAMETER_ERROR("PR1004", "参数错误"),
    PARAMETER_TYPE_ERROR("PR1005", "参数类型错误"),
    REMOTE_CALL_TIME_OUT("PR1006", "remoteCallTimeOut.message"),
    USER_IS_NULL_NEED_LOGIN("PR00001", "pleaseLogInFirst.message"),
    ;

    private final String code;
    private final String msg;

    ExceptionErrorCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getErrorCode() {
        return code;
    }

    public String getErrorKey() {
        return msg;
    }
}
